package com.config.entity;

import com.base.annotation.DisplayField;

/**
 * 名称：设备信息表
 * */
public class Equipment {
	private Integer id;
	private Integer equMoldId;// 设备类型id
	private Integer lineId;// 生产线id
	private String equName;// 设备名称
	private String equNo;// 设备编号
	private Double ratedPower;// 额定功率
	private String equPhoto;// 设备图片，存储图片的路径，图片存储在项目文件夹中
	private String supplier;// 生产厂家
	private String life;// 使用寿命
	private String isCollect;// 是否采集数据
	private String remark;// 备注
	//添加设备类型字段，EquModel表暂不使用
	private String equType;//设备类型
	@DisplayField
	private String type;//根据外键equMoldId找到对应的设备类型字段
	
	public Equipment() {
	}

	public Equipment(Integer id, Integer equMoldId, Integer lineId, String equName,
			String equNo, Double ratedPower, String equPhoto, String supplier,
			String life, String isCollect, String remark) {
		this.id = id;
		this.equMoldId = equMoldId;
		this.lineId = lineId;
		this.equName = equName;
		this.equNo = equNo;
		this.ratedPower = ratedPower;
		this.equPhoto = equPhoto;
		this.supplier = supplier;
		this.life = life;
		this.isCollect = isCollect;
		this.remark = remark;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getEquMoldId() {
		return equMoldId;
	}

	public void setEquMoldId(Integer equMoldId) {
		this.equMoldId = equMoldId;
	}

	public Integer getLineId() {
		return lineId;
	}

	public void setLineId(Integer lineId) {
		this.lineId = lineId;
	}

	public String getEquName() {
		return equName;
	}

	public void setEquName(String equName) {
		this.equName = equName;
	}

	public String getEquNo() {
		return equNo;
	}

	public void setEquNo(String equNo) {
		this.equNo = equNo;
	}

	public Double getRatedPower() {
		return ratedPower;
	}

	public void setRatedPower(Double ratedPower) {
		this.ratedPower = ratedPower;
	}

	public String getSupplier() {
		return supplier;
	}

	public void setSupplier(String supplier) {
		this.supplier = supplier;
	}

	public String getLife() {
		return life;
	}

	public void setLife(String life) {
		this.life = life;
	}

	public String getIsCollect() {
		return isCollect;
	}

	public void setIsCollect(String isCollect) {
		this.isCollect = isCollect;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getEquPhoto() {
		return equPhoto;
	}

	public void setEquPhoto(String equPhoto) {
		this.equPhoto = equPhoto;
	}

	public String getEquType() {
		return equType;
	}

	public void setEquType(String equType) {
		this.equType = equType;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@Override
	public String toString() {
		return "Equipment [id=" + id + ", equMoldId=" + equMoldId + ", lineId="
				+ lineId + ", equName=" + equName + ", equNo=" + equNo
				+ ", ratedPower=" + ratedPower + ", equPhoto=" + equPhoto
				+ ", supplier=" + supplier + ", life=" + life + ", isCollect="
				+ isCollect + ", remark=" + remark + "]";
	}
}
